package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Canvas;
import by.amakarevich.datamodel.Product;

public interface CanvasService {

	@Transactional
	void createNewCanvas(Canvas canvas, Product product);
	
	@Transactional
	Canvas get(Long id);
	
	@Transactional
	void updateCanvas(Canvas canvas);
	
	@Transactional
	void removeCanvas(Long id);
	
	@Transactional
    void deleteAll();
}
